package com.interest.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.interest.common.annotation.Excel;
import com.interest.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品对象 interest_goods
 * 
 * @author ruoyi
 * @date 2024-03-23
 */
public class InterestGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 关联权益 */
    @Excel(name = "关联权益")
    private String interestId;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String code;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 成本价 */
    @Excel(name = "成本价")
    private BigDecimal costPrice;

    /** 售价 */
    @Excel(name = "售价")
    private BigDecimal salePrice;

    /** 有效期类型 长期有效、固定期限 */
    @Excel(name = "有效期类型 长期有效、固定期限")
    private String validType;

    /** 有效期开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validStartTime;

    /** 有效期截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validEndTime;

    /** 商品状态 0生效中 1已过期 */
    @Excel(name = "商品状态 0生效中 1已过期")
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setInterestId(String interestId) 
    {
        this.interestId = interestId;
    }

    public String getInterestId() 
    {
        return interestId;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCostPrice(BigDecimal costPrice) 
    {
        this.costPrice = costPrice;
    }

    public BigDecimal getCostPrice() 
    {
        return costPrice;
    }
    public void setSalePrice(BigDecimal salePrice) 
    {
        this.salePrice = salePrice;
    }

    public BigDecimal getSalePrice() 
    {
        return salePrice;
    }
    public void setValidType(String validType) 
    {
        this.validType = validType;
    }

    public String getValidType() 
    {
        return validType;
    }
    public void setValidStartTime(Date validStartTime) 
    {
        this.validStartTime = validStartTime;
    }

    public Date getValidStartTime() 
    {
        return validStartTime;
    }
    public void setValidEndTime(Date validEndTime) 
    {
        this.validEndTime = validEndTime;
    }

    public Date getValidEndTime() 
    {
        return validEndTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("interestId", getInterestId())
            .append("code", getCode())
            .append("name", getName())
            .append("costPrice", getCostPrice())
            .append("salePrice", getSalePrice())
            .append("validType", getValidType())
            .append("validStartTime", getValidStartTime())
            .append("validEndTime", getValidEndTime())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .toString();
    }
}
